#ifndef PRODUCTMANAGERDIALOG_H
#define PRODUCTMANAGERDIALOG_H

#include <QDialog>
#include <QSqlDatabase>
#include <QTreeWidgetItem>

namespace Ui {
class ProductManagerDialog;
}

class ProductManagerDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ProductManagerDialog(QWidget *parent = 0, QSqlDatabase db=QSqlDatabase());
    ~ProductManagerDialog();

private slots:
    void on_showClosedCheckBox_clicked();
    void on_addPushButton_clicked();
    void on_removePushButton_clicked();
    void on_treeWidget_itemDoubleClicked(QTreeWidgetItem *item, int column);
    void on_moveUpPushButton_clicked();
    void on_moveDownPushButton_clicked();

private:
    void initializeList();
    void initializeComponentList();

    Ui::ProductManagerDialog *ui;
    QSqlDatabase db_;
};

#endif // PRODUCTMANAGERDIALOG_H
